package lab02.text15;

/**统计他的年收入和学费，如果收入减去学费不足2000元，
 * 则输出“You  need a loan!”（需要贷款）的信息，否则输出“You income is enough！”信息。
 * Created by dell on 2017/10/25.
 */
public class Text15 {
    public static void main(String[] args) {
        Graduate zhangsan = new Graduate();
        zhangsan.name = "zhangsan";
        zhangsan.sex = "男";
        zhangsan.age = 25;
        System.out.println();

        zhangsan.pay = 2000;
        zhangsan.fee = 5000;
        if(12*zhangsan.pay - 2*zhangsan.pay < 2000){
            System.out.println("You  need a loan!");
        }else {
            System.out.println("You income is enough！");
        }

    }
}
